package com.hly.musicbackground.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hly.musicbackground.domain.Version;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface VersionDao extends BaseMapper<Version> {

    @Select("select * from version where type=#{type} order by create_time desc limit 0,1")
    Version newSelectOne(String type);
}
